﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NETMovie.BLL
{
    public class RepositoryHelper
    {
        public static Repositories.RepositoryFactory GetFactory(Repositories.RepositoryTypes repoType)
        {
            switch (repoType)
            {
                case Repositories.RepositoryTypes.EF:
                    return new Repositories.EF.RepositoryFactory();

                case Repositories.RepositoryTypes.MSSQL:
                    return new Repositories.MSSQL.RepositoryFactory();

                default:
                    return null;
            }
        }
    }
}
